Server Actionsのサイズ制限を緩和する
docsに書いている
next.config.jsのserverActions.bodySizeLimitを指定すれば良い
code:next.config.js
/** @type {import('next').NextConfig} */
module.exports = {
experimental: {
serverActions: {
bodySizeLimit: '2mb',
},
},
}
デフォルトで1mb
for example 1000, '500kb' or '3mb'.
prod buildした時に、これがエラーとして表示されないので原因特定が難しい